package com.peanut.mapper;

import com.orm.mapper.BaseMapper;
import com.peanut.entity.BookTypeSecond;
import com.peanut.entity.Channel;
import com.peanut.entity.dto.QueryChannel;

import java.util.List;

public interface ChannelMapper extends BaseMapper<Channel> {
	
	// 按照一级分类id 查询, 需要找一级分类下的所有二级分类
	List<Channel> queryByTopChannelType(QueryChannel queryChannel);
	
	// 按照二级分类id 查询，直接查
	List<Channel> queryBySonChannelType(QueryChannel queryChannel);
	
	
	// 关于删除

}
